package com.chinaunicom.system.service;

import java.util.List;

import com.chinaunicom.system.dto.UserDto;
import com.chinaunicom.system.model.User;

public interface IUserService {
    int deleteByPrimaryKey(Integer nUserid) throws Exception;

    int insert(User record) throws Exception;

    int insertSelective(User record) throws Exception;

    User selectByPrimaryKey(Integer nUserid) throws Exception;

    int updateByPrimaryKeySelective(User record) throws Exception;

    int updateByPrimaryKey(User record) throws Exception;

	User queryByUserName(String username) throws Exception;

	List<UserDto> query(UserDto dto) throws Exception;

	/**
	 * 保存用户和用户角色相关联的数据
	 * @param dto
	 */
	void save(UserDto dto) throws Exception;

	UserDto queryById(Integer id) throws Exception;

	/**
	 * 保存用户和用户角色关联的数据
	 * @param dto
	 */
	void update(UserDto dto) throws Exception;

	void delete(Integer id) throws Exception;
}
